package org.ssmd3.dao;

import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.ResponseBody;
import org.ssmd3.pojo.News;


import java.util.List;
@Repository("newsMapper")
public interface NewsMapper {


    int getRecordCount(News news);

    List<News> getNewsListPage(News news);



    int save(News news);

    int update(News news);

    News getOneNews(int id);

    int delete(int id);

    int deleteAll(String[] ids);
}
